Create a representation of a file in SharePoint, running with elevated privileges when accessing the SharePoint file.
Parent Type: CachedSharePointFile
Namespace: Microsoft.LearningComponents.SharePoint
Assembly: Microsoft.LearningComponents.SharePoint.dll
| C# |
|
public CachedSharePointFile ( ) |
cacheSettings
The settings that determine how the file is cached.
location
The location of the file in SharePoint.
runWithElevatedPrivileges
If true, SharePoint file will be accessed using elevated privileges.
| Exception type | Condition |
| UnauthorizedAccessException | Thrown if the |
This method does only verifies that the settings.WindowsIdentity has access to the settings.CachePath. It does not verify that the file exists in SharePoint. The contents of the package are read only once when they are first needed.